package com.meituan.service.impl;

import com.meituan.dao.ZhuYeDao;
import com.meituan.pojo.entity.ZhuYe;
import com.meituan.pojo.resp.BaseResp;
import com.meituan.service.ZhuYeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ZhuYeServiceImpl implements ZhuYeService {

    @Autowired
    ZhuYeDao dao;

    @Override
    public BaseResp findAll() {
        List<ZhuYe> all = dao.findAll();
        return new BaseResp(1,"success",all);
    }
}
